Conversation
|
I have not yet tested this myself, as I first wanted to know if anything else is needed here. I am in process of building the z-stack library with hardware flow control, but need something to test with, chicken and egg. I think this exposes everything correctly to zigpy, but I wasn't 100% sure. So this is also a 'verification step' to check if this patch is correct at all. I will report later if this works or not, where the second bit will be hardware. Is my Z-Stack patch broken, did I forget to flip the switch, or is zigpy-cli not doing it for me. |
puddly
left a comment
There was a problem hiding this comment.
I left a few comments. I think this is a good addition, thanks!
If you run zigpy-cli in verbose mode ( |
|
So first test shows the option to be working as expected. (yes, I am aware that None wasn't a valid string to begin with, but I wanted to trigger the error/see what happens :p) / # zigpy -vvv radio --baudrate=115200 --flow-control=hardware znp /dev/ttyUSB0 info / # zigpy -vvv radio --baudrate=115200 --flow-control=software znp /dev/ttyUSB0 info |
0c2c22d to
872e6b3
Compare
|
I think this is more explicit. There's various option, but the only accepted flag is passed. No room for ambiguity. Upstream does something similar as well anyway. |
|
|
|
Sure, but this is also what users potentially expect/look for? Eg z2mqtt talks only about rtscts, but zha uses hw/sw. I think this simply one of those QoL things ...
|
|
They can always run |
While I generally agree with you; I think here it does make sense to alias the values, to go with the common namings. Which is what zigpy itself even does; rename hardware to rtscs. However, you are the boss; so I'll drop the aliases. |
Certain boards (such as the Sonoff Zigbee 3.0 USB Dongle Plus P) have a hardware switch that allows for turning on hardware flow control (given the correct firmware is flashed). This requires of course that zigpy-cli also allows for setting this flag to be able to communicate with the dongle. Zigpy and zigpy-znp already support hardware flow control fully. No wit is time that zigpy-cli also offers this option. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Certain boards (such as the Sonoff Zigbee 3.0 USB Dongle Plus P) have a hardware switch that allows for turning on hardware flow control (given the correct firmware is flashed). This requires of course that zigpy-cli also allows for setting this flag to be able to communicate with the dongle.
Zigpy and zigpy-znp already support hardware flow control fully. No wit is time that zigpy-cli also offers this option.